import http from '@/common/api/http'


export function getRoles(params) {
	return http.get('/companyRole/roleList', {
		params
	})
}

export function getRoleOptionsForUser(params) {
	return http.get('/companyRole/roleList', {
		params
	})
}

export function postRole(data) {
	return http.post("/companyRole/addRole", data)
}

export function putRole(data, ) {
	return http.post('/companyRole/editRole', data)
}

export function deleteRole(params) {
	return http.delete('/role/deleterole', {
		method: 'delete',
		params
	})
}